Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    Project Manual

    # Overview

    In Zadig, a project is the core business management unit for independent teams or product lines. Each project includes workflows, environments, services, builds, tests, code scans, and versions. This manual covers project access, template management, service configuration, workflow setup, permissions, and collaboration management. It helps you quickly understand and use Zadig to improve efficiency and support R&D processes.

    # Project Access Methods

    Zadig supports three project access methods:

    • Existing project hosting: For projects with service configurations not managed by Zadig
    • Existing project import: For projects with configurations managed through Git repositories or other storage
    • New project access: For new projects that need to build an engineering system

    # Existing Project Hosting

    1. Create a new project -> Select hosted project.

    Existing project hosting

    1. Configure hosting environment by selecting services from specified cluster and namespace.

    Existing project hosting

    1. Configure service builds. See: Build.

    Existing project hosting

    1. Execute workflows to deploy and update services in specified environment.

    Existing project hosting

    Tip

    To manage service configuration on Zadig later, switch project type. See: Switch project type.

    # Existing Project Import

    The access steps are introduced separately for the two forms of configuration files (YAML/Helm Chart).

    # YAML Form

    1. Create new project, select K8s YAML project.
    1. Create new service: Sync service configuration from codebase. See: Create service.

    Existing project import

    1. Add build for service: Select service -> Variables -> Add build, configure build script.

    Existing project import

    1. Create new environment: Select existing namespace (e.g., dev/sit/uat/prod). See: Create environment.

    Existing project import

    1. Execute workflows: Enter project -> Workflows, run workflow to update services.

    Existing project import

    # Helm Chart Form

    1. Create new project, select K8s Helm Chart project.
    1. Create new service: Sync service configuration from codebase. See: Create service.

    Existing project import

    1. Add build for service: Select service -> Variables -> Add build, configure build script.

    Existing project import

    1. Create new environment: Select existing namespace (e.g., dev/sit/uat/prod). See: Create environment.

    Existing project import

    1. Execute workflows: Enter project -> Workflows, run workflow to update services. See: Workflows.

    Existing project import

    # New Project Access

    The access steps are introduced separately for the two forms of configuration files (YAML/Helm Chart).

    # YAML Form

    1. Create new project: Select K8s YAML project.
    1. Create a new service: Use templates to create a new service. See: Create a new service.
    1. Create a new environment: Select the service to create new dev/sit/uat/prod environments.

    New project access

    1. Configure builds: Use build templates to configure build scripts. See: Build.
    1. Configure workflows: Configure the corresponding workflows for test and production environments. See: Workflows.

    New project access

    # Helm Chart Form

    1. Create a new project: Select the K8s Helm Chart type project.
    1. Create a new service: Use templates to create a new service. See: Create a new service. New project access

    2. Create a new environment: Select the service to create new dev/sit/uat/prod environments. New project access

    3. Configuration build: Use the build template to configure the build script. See: Build.

    1. Configure workflows: Configure the corresponding workflows for test and production environments. See: Workflows. New project access

    # Standard Template Management

    Through the Zadig template library, the operations team can achieve unified application delivery standards, standardize release processes, and accumulate standardized templates that meet the company's own characteristics. This provides the R&D and operations departments with an efficient engineering collaboration basis, quickly responding to the needs of business iteration, and ensuring the stability and scalability of the system. The template library provides various types of templates, including service templates, build templates, Dockerfile templates, and workflow templates.

    # Service Templates

    Scenario

    The configuration file content structure of multiple services isomorphic, but the specific configuration is different. For example: the port number/number of replicas/database connection addresses of different services are different. Abstract the configuration of the service into a common K8s YAML/Helm Chart template, allowing users to create multiple services on the common template.

    The different organizational forms of service configurations (K8s YAML/Helm Chart) are introduced separately.

    # K8s YAML Template

    Preparation: Abstract the configuration of multiple services into a K8s YAML template. The following are the relevant configurations of multi-service-demo projects for reference. For more usage postures, see: K8s YAML Template, create a new service using templates.

    • The K8s YAML configurations of three microservices: service1(opens new window), service2(opens new window), service3(opens new window)
    • The abstracted template for the above three service configurations: K8s YAML Template(opens new window).
    1. Create a new template: Go to the template library -> K8s YAML -> Create template, enter the template content and save it.
    1. Configure custom variables: Configure the default values of variables as needed. Standard template management

    2. Create a new service using the template.

    1. Template content changes will synchronize and update the service configuration: Enable automatic synchronization in the service configuration, and after the template content changes, it will be applied to the service

    # Helm Chart Template

    Preparation: abstract the Helm Chart configurations of multiple services into Helm Chart templates, and the following are the relevant configurations of multi-service-demo projects for reference. For more usage postures, see: Helm Chart Template, create a new service using template.

    • The Helm Chart configurations of three microservices: service1(opens new window), service2(opens new window), service3(opens new window).
    • The abstracted template for the above three service configurations: Helm Chart Template(opens new window).
    1. Create a new template: Go to the template library -> K8s YAML -> Create template, enter the template content and save it.
    1. Configure custom variables: Save the default values of variables as needed. Standard template management

    2. Create a new service using the template: Enter K8s Helm Chart project -> Services -> Create a new service using the template, fill in the parameters and import it.

    1. Template content changes will synchronize and update the service configuration: Enable automatic synchronization in the service configuration, and after the template content changes, it will be applied to the service.

    # Dockerfile Template

    Preparation: Abstract the mirror building configuration of multiple services into a Dockerfile template. The following are the relevant configurations of multi-service-demo projects for reference. For more usage postures, see: Dockerfile Template, build configuration.

    • The source code of three microservices: service source code(opens new window).
    • The project build files for the above three services: Makefile(opens new window).
    • The abstracted image build configuration for the above three services: Dockerfile Template(opens new window).
    1. Create a new template: Go to the template library -> Dockerfile Template -> Create template, enter the template content and save it.
    1. Use the Dockerfile template to configure the build for the service. Standard template management

    # Build Templates

    Scenario

    The build configurations of multiple services are isomorphic (e.g., multiple service codes of the same technology stack are maintained in separate codebases, the dependent software packages are the same, the build scripts are isomorphic, and only the code information differs...). Use Zadig build templates to improve the efficiency of configuration builds. For more details, see: Build Templates.

    1. Create a new build template: Go to the template library -> Build -> Create template, configure and save.
    1. Using build templates: Use template configuration to configure the code information required for multiple service builds. For multiple services using the same build template, you can use batch entry to quickly configure it.

    Standard template management

    # Workflow Templates

    Abstract workflow templates based on project processes, quickly create workflows based on templates. For more details, see: Workflow Templates. Standard template management

    # Service and Environment Configuration

    # Deploying Test Services

    Step 1: Configure the test service

    1. Based on K8s YAML template, create new business services. See: service. Business operations and maintenance operations

    2. Based on the build template, configure the build for the service. See: Build.

    Optimization Suggestions:

    SuggestionsDescriptionReference Documents
    Speed up the build process1. Include commonly used build dependency tools
    2. Customize cache directories
    1. Custom build images
    2. Configure the build cache
    Reduce maintenance burden1. Multiple services have similar builds; configure a single build script to reduce maintenance costs
    2. Standardize and unify the management of service build materials to reduce maintenance and management burdens
    1. Share build scripts
    2. Use the build template

    Business operation and maintenance operations

    Step 2: Add to the environment. See: K8s YAML Environment. Business operation and maintenance operations

    Step 3: Add the service to the corresponding workflow, and add the service component and its corresponding build to the workflow. Business operation and maintenance operations

    # Offline Testing Service

    1. Delete service definition. See: Delete service. Business operation and maintenance operations

    2. Delete the service from the environment. See: K8s YAML Environment. Business operation and maintenance operations

    # Create a New Test Environment

    Enter the project -> Environment -> Create a new environment -> Test Environment, fill in the parameters, and create a new one.

    • K8s YAML Project. See: Create a new K8s YAML environment.
    • K8s Helm Chart Project. See: Create a new Helm Chart environment. Business operation and maintenance operationsBusiness operation and maintenance operations

    Some best practices are provided for reference:

    1. Use a single set of service configurations to create multiple test environments. See: Configure Multiple Integrated Environments.
    2. Different environments use different structures deployment , variable capabilities can be used. See: K8s YAML.
    3. Different business lines can use different K8s cluster resources. For adding new cluster configurations, see: Cluster Management.
    4. Environment configuration management. See: Environment configuration.

    # Online Production Service

    Step 1: Configure production services. See: production services. Business operation and maintenance operations

    Step 2: Configure the production environment. See: K8s YAML Production Environment. Business operation and maintenance operations

    Step 3: Configure the workflow, add deployment tasks. See: Workflow. Business operation and maintenance operations

    # Offline Production Service

    Caution

    Given the seriousness of production services, there are certain risks associated with offline operations. Please ensure that the service can be safely taken offline before proceeding.

    See: Offline service.

    # Create a New Production Environment

    See: Production Environment.

    # Workflow Configuration

    For specific configuration, see: Workflow

    # Permission Management

    Zadig user permissions consist of system permissions and project permissions. These are managed by configuring the user's system roles, project roles, and collaboration modes within the project. User permissions are the union of all granted permission items. The specific mechanism is shown in the figure below:

    Permission management mechanism

    # Configuration Operations

    First, understand the basic operations for configuring user project permissions.

    # Project Role Configuration

    Access project configuration -> permissions, configure roles and project members. See: permission configuration.

    Business operation and maintenance operationsBusiness operation and maintenance operationsBusiness operation and maintenance operations

    # Collaboration Mode Configuration

    Access permission management -> Collaboration mode, just configure permissions for collaboration members, workflows, and environmental resources. For specific configuration process, see: Collaboration mode.

    Business operation and maintenance operations

    # Configuration Examples

    The following examples illustrate how to configure permissions for different roles.

    # Project Administrator

    Permission Description: Has permissions for any operation in the project

    Specific Configuration: Grant the project role project-admin

    Permission configuration

    # R&D Engineer

    Permission Description:

    • All operation permissions for building, testing services, code scanning, and version management modules
    • All operation permissions for dev workflows
    • All operation permissions for dev and sit environments

    Specific Configuration:

    • Create and grant the project role dev, and configure permissions as shown in the figure below:
    • Create and join the collaboration mode dev, and configure workflow and environment-related permissions as shown in the figure below:

    # Test Engineer

    Permission Description:

    • All operation permissions for the test module
    • All operation permissions for sit workflows
    • All operation permissions for sit environments

    Specific Configuration:

    • Create and grant the project role qa, and configure permissions as shown in the figure below:
    • Create and join the collaboration mode qa, and configure workflow and environment-related permissions as shown in the figure below:

    # Release Engineer

    Permission Description:

    • All operation permissions for production services, production environments, and version management
    • All operation permissions for prod and uat workflows
    • All operation permissions for uat environments

    Specific Configuration:

    • Create and grant the project role sre, and configure permissions as shown in the figure below:
    • Create and join the collaboration mode sre, and configure workflow and environment-related permissions as shown in the figure below:

    ← Administrator ManualToolchain→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式